// 导入二次封装axios
import koi from "@/utils/axios.ts";

// 统一管理接口
enum API {
  LIST_PAGE = "/koi/sysUserOnline/listPage",
  KICK_OUT = "/koi/sysUserOnline/kickOut",
  LOGOUT = "/koi/sysUserOnline/logout",
}
// 暴露请求函数
// 多条件分页查询数据
export const listPage = (params: any) => {
  return koi.get(API.LIST_PAGE, params);
};

// 踢人下线，token会被锁定，不能使用
export const kickOut = (id: any) => {
  return koi.get(API.KICK_OUT + "/" + id);
};

// 强制注销，该token会被注销
export const logout = (id: any) => {
  return koi.get(API.LOGOUT + "/" + id);
};


